/<template>
  <div class="mask" v-show="show">
    <div class="cont">
      <span @click="close">X</span>
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props:{
    show:Boolean,
  },
  methods:{
    close()
    {
      this.bus.$emit("closeShow")
    }
  }
}
</script>

<style lang="scss">
  .mask{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;left: 0;
    background-color: rgba(0, 0, 0, 0.3);
    .cont{
      position: absolute;
      width: 80%;
      height: 400px;
      background-color: #fff;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      margin: auto;
    }
  }
</style>